package org.jeecg.modules.demo.zc.rentCar.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.zc.rentCar.entity.RentCar;
import org.jeecg.modules.demo.zc.rentCar.mapper.RentCarMapper;
import org.jeecg.modules.demo.zc.rentCar.service.IRentCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@DS("multi-datasource3")
@Service
public class RentCarServiceImpl extends ServiceImpl<RentCarMapper, RentCar> implements IRentCarService {

    @Autowired
    private RentCarMapper rentCarMapper;

    public Integer getOrgId(String orgCode){
        return rentCarMapper.getOrgId(orgCode);
    }

    public List<Integer> getparentOrgIds(Integer orgId){
        return rentCarMapper.getparentOrgIds(orgId);
    }
}
